package com.hc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hc.domain.Product;
import com.hc.query.ProductCondition;
import com.hc.res.ProductItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hecai
 * @date 2021/12/7 15:10
 *
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    int updateBatch(List<Product> list);

    int batchInsert(@Param("list") List<Product> list);

    IPage<ProductItem> selectList(IPage<ProductItem> page, @Param("condition")ProductCondition condition);
}